package com.tllq.zhongkang.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 7134416133113595312L;
    //主单号
    private String orderNo;
    //下单时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime buyDate;
    //实付金额
    private Double payMoney;
    //会员卡号
    private String cardNo;
    //门店编号
    private String storeNo;
    //销售员编号、营业员编号
    private String storeUserNo;
    //商品名称
    private String name;
    //商品批文（国药准字）
    private String approval;
    //购买数量
    private Double count;
    //商品编码
    private String drugId;
    //应付金额
    private Double originMoney;
    //零售单价
    private Double retailPrice;
    //成本单价
    private Double costPrice;
    //成本金额
    private Double costAmount;
    //毛利额
    private Double grossProfitAmount;

}
